import React, { Component } from 'react';
class List extends Component {
  state = {
    id: ''
  }
  componentDidMount () {
    console.log(this.props.match)
    this.setState({
      id: this.props.match.params.id
    })
  }
  render () {
    return (<div>list{this.state.id}</div>);
  }
}

export default List;